package com.ruoyi.product.common;

import com.ruoyi.common.core.utils.SecurityUtils;

public class MerchantUtils {
    public static  Long      getMerchantId(){
        Long userId = SecurityUtils.getUserId();
        if (!SecurityUtils.isAdmin(userId)) {
            return  userId;
        }
        return null;
    }
}
